package com.xtoneict.auth.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@TableName("work_time_file")
public class WorkTimeFile {

    @TableId(value = "file_id", type = IdType.AUTO)
    private Integer fileId;

    private String fileName;

    private Integer depId;
    private String depName;

    private Integer employeeId;
    //对应员工姓名
    private String employeeName;

    //休假总时长
    private Double leaveCount;

    private Integer yearMonthId;
    private Integer year;
    private Integer month;

    //审核状态
    @TableField(value = "pass_status",fill = FieldFill.INSERT)
    private Integer passStatus;

    //审核未通过原因（只有审核未通过时才有值）
    private String noPassReason;

    //工时情况
    @TableField(exist = false)
    private List<WorkProject> workProjects;

    @TableLogic
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)
    private Integer isDeleted;

}
